package com.dys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dys.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: 疾风
 * @ClassName: RoleMapper
 * @Description: 角色数据访问层
 * @CreateDate: 2024/12/17
 * @Version: v1.0.0
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据userId获取角色列表
     *
     * @param userId 用户编号
     * @return 角色列表
     */
    List<String> selectRolesByUserId(Long userId);
}
